<?php
class MaoShen_Application_Resource_Cache extends Zend_Application_Resource_ResourceAbstract
{
    public function init ()
    {
    $options = $this->getOptions();
    // 获得Zend_Cache_Core对象
    $cache = Zend_Cache::factory(
        $options['frontEnd'],
        $options['backEnd'],
        $options['frontEndOptions'],
        $options['backEndOptions']
    );
    Zend_Registry::set('cache', $cache);
    return $cache;
    }
}

